package com.ftg.learn.controller;

import com.ftg.learn.service.SmsService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 布衣
 */
@RestController
@RequestMapping("/sms")
public class SmsController {

    @Resource
    SmsService smsService;

    @GetMapping("/send")
    public String send(String phone) {
        return smsService.send(phone);
    }

}
